package com.mjk.common.core.jdbc.service.parse.type;


import com.mjk.common.core.jdbc.service.parse.type.impl.sql.BeeSqlPrase;
import com.mjk.common.tools.springextend.BeeSpringBean;
import lombok.Getter;

/**
 * 解析类型枚举类，用于 以后的解析扩展
 * @author Administrator
 *
 */
public enum BeeParseType {
	SQL();
	@Getter
    private final String type;
	private final Class<?> parsing;
	BeeParseType(){
		this.type = "sql";
		this.parsing = BeeSqlPrase.class;
	}

    public static IBeeParse getParsing(BeeParseType type) {
		return (IBeeParse) BeeSpringBean.getBean(type.parsing);
	}
}
